import { auth } from '@/util/index'

const Layout = () => import('@/layout/index.vue')

export default {
    path: '/user_management',
    component: Layout,
    redirect: '/user_management',
    name: 'multilevelMenuExample',
    meta: {
        title: '用户管理',
        icon: 'sidebar-menu',
        auth: ["admin"]
    },
    children: [
        {
            path: 'page',
            name: 'multilevelMenuExample1',
            component: () => import('@/views//user_management/manager.vue'),
            meta: {
                title: '管理员信息管理',
            }
        },
        {
            path: 'page2',
            name: 'multilevelMenuExample2',
            component: () => import('@/views/user_management/teacher.vue'),
            meta: {
                title: '教师信息管理',

            }
        },
        {
            path: 'page3',
            name: 'multilevelMenuExample3',
            component: () => import('@/views/user_management/student.vue'),
            meta: {
                title: '学生信息管理'
            }
        }
    ]
}
